package com.ileaf.chromosphere;

/**
 * @author Lianlb
 * @since 2019-11-23 15:03
 */
public class ThreadSafeTest {

    static int count = 0;

    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 1000; i++) {
            new Thread(() -> count++).start();
        }
        Thread.sleep(3000);
        System.out.println("Result: " + count);
    }
}
